import { Element } from '../../../fieldType'
import commonField from '../../../propertyPanel/commonConfig'
export interface SignElement extends Element {
  hint: string
  width: number,
  usePre: number
}
function formListFactory () {
  return [
    commonField.name,
    commonField.attrCode,
    commonField.hint,
    commonField.width,
    { label: '允许下次使用同一签名', name: 'usePre', type: 'switch', tip: '开启后，工单处理人可以直接使用上一次绘制的签名，请谨慎使用' }
  ]
}
const formList = formListFactory()
const formTemplate: SignElement = {
  usePre: 0,
  attrCode: '',
  businessId: '',
  name: '签名',
  fieldType: 'sign',
  hint: '',
  width: 1
}
export default {
  formList,
  formTemplate
}
